import vue from 'vue'
import VueRouter from 'vue-router'
vue.use(VueRouter)
const router = new VueRouter({
    mode: 'hash',
    routes: [{
            path: "/home",
            name: "home",
            component: () =>
                import ('../components/Home.vue')
        },
        {
            path: "/listgit",
            name: "listgit",
            component: () =>
                import ('../components/Listgit.vue')
        },
        {
            path: "/cart",
            name: "cart",
            component: () =>
                import ('../components/Cart.vue')
        },
        {
            path: "/search",
            name: "search",
            component: () =>
                import ('../components/Search.vue')
        },
        {
            path: "/my",
            name: "my",
            component: () =>
                import ('../components/My.vue')
        }
    ]
})
export default router